package cloud.keveri.example.gateway.provider.service;

import cloud.keveri.example.gateway.api.IUserService;
import cloud.keveri.gateway.sdk.Protocol;
import cloud.keveri.gateway.sdk.annotation.GatewayService;
import cloud.keveri.gateway.sdk.annotation.Invoker;
import org.apache.dubbo.config.annotation.DubboService;

@GatewayService(serviceId = "UserService#serverId", protocol = Protocol.DUBBO, patternPath = "/user")
@DubboService
public class UserService implements IUserService {

    @Invoker(path = "/hello", auth = true)
    public String hello(String name) {
        return "你好，" + name;
    }
}
